package com.awanp3.nimbus.base.domain.bo;

import com.awanp3.nimbus.base.domain.BaseCompany;
import com.awanp3.nimbus.common.core.validate.AddGroup;
import com.awanp3.nimbus.common.core.validate.EditGroup;
import com.awanp3.nimbus.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 公司业务对象 base_company
 *
 * @author 20014170
 * @date 2025-09-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseCompany.class, reverseConvertGenerate = false)
public class BaseCompanyBo extends BaseEntity {

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 公司编码
     */
    @NotBlank(message = "公司编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyCode;

    /**
     * 公司名称
     */
    @NotBlank(message = "公司名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyName;

    /**
     * 国家编码
     */
    @NotBlank(message = "国家编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryCode;

    /**
     * 国家名称
     */
    @NotBlank(message = "国家名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryName;

    /**
     * 时区
     */
    @NotBlank(message = "时区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String timeZoneId;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
